/*
* @Author: tomystery
* @Date:   2017-10-08 17:02:48
* @Last Modified by:   tomystery
* @Last Modified time: 2017-10-08 21:52:07
*/
'use strict';

var _mm = require('util/mm.js');

var _payment = {
    // 获取商品列表
    getPaymentInfo : function(orderNumber, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/pay.do'),
            data    : {
            orderNo	:orderNumber
            },
            method	:'POST',
            success : resolve,
            error   : reject
        });
    },
    //获取订单状态
    getPaymentStatus:function(orderNumber, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/query_order_pay_status.do'),
            data    : {
            orderNo	:orderNumber
            },
            method	:'POST',
            success : resolve,
            error   : reject
        });
    }
  
}
module.exports = _payment;